package com.guangzhi.weijianzhi.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.guangzhi.weijianzhi.R;
import com.guangzhi.weijianzhi.http.HttpUrls;
import com.ihgoo.allinone.http.RequestManager;

public class BaseFragment extends Fragment{
	public Button goBack;
	public Button titleRightBtn;
	public Button titleRightBtn2;
	public TextView titleTextV;
	public RelativeLayout title;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return super.onCreateView(inflater, container, savedInstanceState);
	}
	
 	
	/**
	 * 父类初始化title
	 */
	public void initTitle(View v){
		
		View findViewById = v.findViewById(R.id.title_root);
	     
	     if("http://182.92.111.126:8084/".equals(HttpUrls.switchs)){
	    	 findViewById.setBackgroundResource(R.drawable.main_group_bgdown_blue);
	     }
			goBack = (Button)v.findViewById(R.id.title_back);
			titleRightBtn = (Button)v.findViewById(R.id.title_right);
			titleTextV = (TextView)v.findViewById(R.id.title_lable);
			titleRightBtn2 = (Button)v.findViewById(R.id.title_right2);
	}
}
